<%@page import="com.multysite.entity.admin.Application"%>
<%@page import="java.util.TreeMap"%>
<%@page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@page import="com.google.appengine.api.users.UserService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	UserService userService = UserServiceFactory.getUserService();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Create Your Own Site</title>
<style>
.error {
	color: red;
}
</style>
</head>
<body>
	<h1>Home page</h1>
	<%
		if(userService.getCurrentUser()!=null){
	%>	
	<p>
		Welcome :
		<%=userService.getCurrentUser().getEmail()%>&nbsp;<a
			href="<%=userService.createLoginURL("/")%>">(Logout)</a>
	</p>	
	<hr width="400px" align="left">
	<%
		}
	%>	
	<a href="/create">(Create Application)</a> 
	<%
		if(userService.getCurrentUser()!=null){
			%>			
			&nbsp;&nbsp;|&nbsp;<a href="/applications">(My Application)</a>
			<%
		}else{
			%>
			 - Need Google Account Login<br>
			<%			
		}
	%>
</body>
</html>